import request from "@/utils/request";

export function queryGeneratorConfigListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/generatorConfig/queryGeneratorConfigListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/generatorConfig/downloadGeneratorConfigListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryGeneratorConfigByCondition(data) {
  return request({
    url: 'api/efficiencyTools/generatorConfig/queryGeneratorConfigByCondition',
    method: 'get',
    params: data,
  })
}


export function updateGeneratorConfig(data) {
  return request({
    url: 'api/efficiencyTools/generatorConfig/updateGeneratorConfig',
    method: 'post',
    data: data,
  })
}

export function saveGeneratorConfigSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/generatorConfig/saveGeneratorConfigSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteGeneratorConfigByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/generatorConfig/deleteGeneratorConfigByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/generatorConfig/insertByExcel',
    method: 'post',
    data: data
  })
}
